import HyForm , {IFormItem , IForm} from '@/base-ui/form/index'

const formItems: IFormItem[] = [
  {
    field:'name',
    label:'用户名',
    rules:[],
    placeholder:'请输入用户名',
    type:'input'
  },
  {
    field:'intro',
    label:'权限介绍',
    rules:[],
    placeholder:'请输入权限介绍',
    type:'input'
  },
  {
    field:'createTime',
    label:'创建时间',
    rules:[],
    // placeholder:'请选择创建时间范围',
    otherOptions:{
      startPlaceholder:'开始时间',
      endPlaceholder:'结束时间',
      type:'daterange'
    },
    type:'datepicker'
  }
]
const colLayout = {xl:6,lg:8,md:12,sm:24,xs:24}
export const formConfig: IForm = {
  labelWidth:'120px',
  itemStyle:{padding:'10px 40px'},
  formItems:formItems,
  colLayout:colLayout

}
